<?php TPL::output('admin/global/header.tpl.htm'); ?>
<?php TPL::output('admin/global/nav_menu.tpl.htm'); ?>

<div class="aw-content-wrap">
    <div class="mod">
        <div class="mod-head">
            <h3>
                <ul class="nav nav-tabs">
                    <li><a href="admin/goods/goods_list/"><?php _e('商品列表'); ?></a></li>
                    <li><a href="admin/goods/goods_list/type-forbidden"><?php _e('下线商品'); ?></a></li>
                    <li><a href="#search" data-toggle="tab"><?php _e('搜索'); ?></a></li>
                    <li class="active"><a href="#add" data-toggle="tab"><?php _e('添加商品'); ?></a></li>
                </ul>
            </h3>
        </div>

        <div class="tab-content mod-content">
            <div class="tab-pane active" id="add">
            <div class="table-responsive">
            <form action="admin/goods_ajax/save_goods/" id="settings_form" method="post">
            <table class="table table-striped">
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('商品分类'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <select name="cat_id" class="form-control pull-left input-small">
                                    <option value="0"><?php _e('无'); ?></option>
                                    <?php echo $this->category_list; ?>
                                </select>
                            </div>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('商品名称'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input class="form-control" name="goods_name" type="text" value="" />
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('关键字'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input class="form-control" name="keywords" type="text" value="" />
                            </div>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('商品编码'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input class="form-control" name="goods_sn" type="text" value="" />
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('是否新品'); ?>:</span>
                            <div class="col-sm-6 col-xs-8">
                                <div class="btn-group mod-btn">
                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="is_new" value="1" checked /> <?php _e('是'); ?>
                                    </label>

                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="is_new" value="0"/> <?php _e('否'); ?>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('是否精品'); ?>:</span>
                            <div class="col-sm-6 col-xs-8">
                                <div class="btn-group mod-btn">
                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="is_best" value="1" /> <?php _e('是'); ?>
                                    </label>

                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="is_best" value="0" checked/> <?php _e('否'); ?>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('是否热销'); ?>:</span>
                            <div class="col-sm-6 col-xs-8">
                                <div class="btn-group mod-btn">
                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="is_hot" value="1" /> <?php _e('是'); ?>
                                    </label>

                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="is_hot" value="0" checked/> <?php _e('否'); ?>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('是否促销'); ?>:</span>
                            <div class="col-sm-6 col-xs-8">
                                <div class="btn-group mod-btn">
                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="is_promote" value="1" /> <?php _e('是'); ?>
                                    </label>

                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="is_promote" value="0" checked/> <?php _e('否'); ?>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <!--<tr>-->
                    <!--<td>-->
                        <!--<div class="form-group">-->
                            <!--<span class="col-sm-4 col-xs-3 control-label"><?php _e('用户组'); ?>:</span>-->
                            <!--<div class="col-sm-5 col-xs-8">-->
                                <!--<select class="form-control" name="group_id">-->
                                <!--<?php foreach ($this->system_group AS $group) { ?>-->
                                <!--<?php if ($group == 1 AND !$this->user_info['permission']['is_administortar']) { continue; } ?>-->
                                <!--<option value="<?php echo $group['group_id']; ?>"<?php if ($group['group_id'] == 4) { ?> selected="selected"<?php } ?>><?php echo $group['group_name']; ?></option>-->
                                <!--<?php } ?>-->
                                <!--</select>-->
                            <!--</div>-->
                        <!--</div>-->
                    <!--</td>-->
                <!--</tr>-->

                <tfoot>
                <tr>
                    <td>
                        <input type="button" value="<?php _e('走你'); ?>" class="btn btn-primary center-block" onclick="AWS.ajax_post($('#settings_form'));" />
                    </td>
                </tr>
                </tfoot>
            </table>
            </form>
            </div>
            </div>

            <!--搜索模板-->
            <?php TPL::output('admin/goods/search.tpl.htm'); ?>

        </div>
    </div>
</div>

<?php TPL::output('admin/global/footer.tpl.htm'); ?>